﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MLM.Data;

namespace MLM.Home.Pages
{
    public partial class ProductDetail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            long ProductID = long.Parse(RouteData.Values["id"].ToString());
            using (var DataContext = new MLMDataContext())
                lvProductDetails.DataSource = DataContext.ProductDescriptions.Where(p => p.ProductBaseID == ProductID).Take(1).ToList();
            lvProductDetails.DataBind();
        }
    }
}